﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization; 

namespace ecdl.demo.model.question {
    [Serializable]
    public class Answer {

        public Answer() : this(String.Empty, false){
        }

        public Answer(string text) : this(text, false) {
        }

        public Answer(string text, bool isCorrect) {
            Text = text;
            IsCorrect = isCorrect;
        }

        [XmlAttribute("text")]
        public String Text { get; set; }

        [XmlIgnore]
        public int Number { get; set; }

        [XmlAttribute("isCorrect")]
        public bool IsCorrect { get; set; }
    }
}
